<?php
namespace app\index\controller;
// header('content-type:application/json');

use think\Controller;
use think\Db;

class Index extends controller
{
   public function index(){
       return $this->fetch();
   }
   public function request() {
       $rs = Db::name("user")->select();
       return json_encode($rs);
   }
}
